Reset Stats

General Action Statement

Syntax samples

RESET STATS

IF Total = 20 THEN RESET STATS

Description

Resets the simulation statistics. Useful in connection with the REPORT statement to manually control statistics for reporting purposes in case specific or event logic.

Valid In

Any logic.

Example

Suppose you want to generate a new output report for each 20-hour period of the simulation. Enter the following logic in an independent subroutine which is activated at the beginning of the simulation:

WHILE Clock(hr) < 10000 DO

BEGIN

WAIT 20 hr

REPORT

RESET STATS

END

See Also

REPORT and WARMUP.